Platform Explorer / Nuxeo Platform LTS 2016 8.10

Component org.nuxeo.ecm.core.storage.mongodb.MongoDBRepositoryService

Documentation

Manages MongoDB repositories.

Implementation

Class: org.nuxeo.ecm.core.storage.mongodb.MongoDBRepositoryService

Services

Extension Points

XML Source

<?xml version="1.0"?>
<component name="org.nuxeo.ecm.core.storage.mongodb.MongoDBRepositoryService"
  version="1.0.0">

  <require>org.nuxeo.ecm.core.storage.dbs.DBSRepositoryService
  </require>

  <documentation>
    Manages MongoDB repositories.
  </documentation>

  <implementation
    class="org.nuxeo.ecm.core.storage.mongodb.MongoDBRepositoryService" />

  <service>
    <provide
      interface="org.nuxeo.ecm.core.storage.mongodb.MongoDBRepositoryService" />
  </service>

  <extension-point name="repository">
    <documentation>
      Extension points to register MongoDB repositories.

      Example:
      <code>
        <repository name="default" label="MongoDB Repository" isDefault="true">
          <server>localhost:27017</server>
          <fulltext disabled="false"/>
        </repository>
      </code>
      Or to provide credentials, several hosts, or options:
      <code>
        <repository name="default" label="MongoDB Repository">
          <server>mongodb://bob:pass@localhost:27017,otherhost:27018/mydb?replicaSet=test;connectTimeoutMS=300000</server>
        </repository>
      </code>
      See http://docs.mongodb.org/manual/reference/connection-string/ for the mongodb:// URI syntax.
    </documentation>
    <object
      class="org.nuxeo.ecm.core.storage.mongodb.MongoDBRepositoryDescriptor" />
  </extension-point>

</component>